package com.example.mybatisdemo.mapper;

import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mybatisdemo.entity.SysRole;

/**
 * @Entity com.example.mybatisdemo.entity.SysRole
 */
public interface SysRoleMapper extends BaseMapper<SysRole>
{
	// 并不建议使用，还是推荐 xml 形式
	@Select({
			"select * from sys_role where id = #{id}"
	})
	SysRole getRoleById(Integer id);

}




